<?php
	header("Content-Type: text/html;charset=utf-8");
 //这段放在网站里


	include("function/_nosql.php"); //

	include("function/function.php");

	

	$newsid = trim($_REQUEST['newsid']);
header("Pragma: no-cache");

$ua = strtolower($_SERVER['HTTP_USER_AGENT']);

$uachar = "/(symbianos|android|Mac OS|ucweb|blackberry)/i";

if($ua != '' && preg_match($uachar, $ua)){

echo '<script>window.location.href="http://www.chinawalking.net.cn/sj/xiangqingDa.php?newsid='.$newsid.'";</script>';

exit();

}

	if(is_numeric($newsid)){

		$sql="select * from kboy_forum_active where id=$newsid";

		$rows=mysql_query($sql);

		$nums=mysql_num_rows($rows);

		if($nums>0){

			$rs=mysql_fetch_array($rows);

				$active_title = $rs['active_title'];          //

				$active_bigclass = $rs['active_bigclass'];

				$active_mingyi = $rs['active_mingyi'];

				$active_fanwei = $rs['active_fanwei'];

				$active_xianzhi = $rs['active_xianzhi'];

				$active_all_money = $rs['active_all_money'];//

				$active_part_money = $rs['active_part_money'];//

				$active_end_user = $rs['active_end_user'];

				$active_text = $rs['active_text'];//

				$active_pic = explode(',', $rs['active_pic']);		//

				
				if(!empty($rs['active_sollimg'])){
					$active_sollimg = explode(',', $rs['active_sollimg']);
				}		//

				$active_hd_content = $rs['active_hd_content'];

				$active_all_line = $rs['active_all_line'];

				$active_start_prov = $rs['active_start_prov'];

				$active_start_city = $rs['active_start_city'];

				$active_end_prov = $rs['active_end_prov'];

				$active_end_city = $rs['active_end_city'];

				$active_start_time = $rs['active_start_time'];

				$active_end_time = $rs['active_end_time'];

				$active_power = $rs['active_power'];

				$active_post_time = $rs['active_post_time'];

				$active_center = $rs['active_center'];

				$active_center_time = $rs['active_center_time'];

				$active_jingdian = $rs['active_jingdian'];

				$active_traffic = $rs['active_traffic'];

				$active_traffic_info = $rs['active_traffic_info'];

				$active_contact = $rs['active_contact'];

				$active_contact_people = $rs['active_contact_people'];

				$active_contact_phone = $rs['active_contact_phone'];

				$active_people = $rs['active_people'];

				$active_line = stripslashes($rs['active_line']);

				$active_xingcheng = stripslashes($rs['active_xingcheng']);

				$active_zhuangbei = stripslashes($rs['active_zhuangbei']);

				$active_baoming = stripslashes($rs['active_baoming']);

				$active_ditu = stripslashes($rs['active_ditu']);

				$active_koubei = stripslashes($rs['active_koubei']);

				$active_addtime = $rs['active_addtime'];

				$uid = $rs['uid'];

				$active_id = $rs['id'];

				$active_transport=$rs['active_transport'];

				$active_charge_details=$rs['active_charge_details'];

				$active_favor = $rs['active_favor'];
				$active_object=$rs['active_object'];
				
				$active_zhubanfang=$rs['active_zhubanfang'];
				$active_xiebanfang=$rs['active_xiebanfang'];
				$active_hezuopinpai=$rs['active_hezuopinpai'];
				$active_hezuomeiti=$rs['active_hezuomeiti'];
				$active_banner=$rs['active_banner'];
				

				$news_content = stripslashes($rs['travel_content']);

				$news_hit = $rs['travel_hit'];

				$uid = $rs['uid'];

				$active_hits = $rs['active_hits']+1;

				$sql_up = " update kboy_forum_active set `active_hits`=$active_hits where id =$active_id";

				mysql_query($sql_up);

				

				

		}else{

			echo erro("该信息已被删除或不存在");

		}

	}else{

		echo erro("该信息已被删除或不存在");

	}

	

	$sql="select * from kboy_bigclass where id=$active_bigclass";

	$rows=mysql_query($sql);

	$nums=mysql_num_rows($rows);

	if($nums>0){

		$rs=mysql_fetch_array($rows);

		$bigclass_cn = $rs['bigclass_cn'];

		

	}else{

		echo erro("该信息已被删除或不存在");

	}

	

	

	//if($news_tourls){ // 设置转页

	//	echo "<meta http-equiv=\"Refresh\" content=\"0;URL=".$news_tourls."\" />";

	//	echo re($news_tourls);

	//}

	

//	// 获取父ID串

//	$replace_str = "1,2,3";

//	getFatherID($classid,"");

//	$getFatherID = $getFatherID . ",";

//	$EXarr = explode(',',$replace_str);

//	foreach($EXarr as $u){

//		$rep_str = ','.$u.",";

//		$getFatherID = str_replace($rep_str,'',$getFatherID);

//	}

//	$getFatherID = rtrim(ltrim($getFatherID,','),',');

//	if(strlen($getFatherID)>0){

//		$Farr = array_reverse(explode(",",$getFatherID));

//		$FarrNum = $Farr[0];

//	}

	//mysql_query("update kboy_forum_active set travel_hit = travel_hit + 1 where id=$newsid");





function str_count($sql,$str){
 $res = mysql_query($sql);
 $num = mysql_num_rows($res);
 $count = 0;
  if($num>0){
	while($arr=mysql_fetch_array($res)){
	 $count = $count + $arr[$str];
	}
  }
  return $count;
}	

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title><?= $active_title.'_'.$web_titles ?></title>

<meta name="Keywords" content="<?= $web_keywords ?>" />

<meta name="Description" content="<?= $web_description ?>" />
<link rel="stylesheet" type="text/css" href="css_daxing/index.css">

<link rel="stylesheet" href="SunbeamEditor/themes/default/default.css" />
<link rel="stylesheet" type="text/css" href="css_daxing/toupiao.css"/>
<link rel="stylesheet" type="text/css" href="./css/swiper.min.css"/>
<script charset="utf-8" src="../js/swiper.min.js"></script>
<script charset="utf-8" src="SunbeamEditor/kindeditor.js"></script>

<script charset="utf-8" src="SunbeamEditor/lang/zh_CN.js"></script>

<!--[if lt IE9]> 
	<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
	<![endif]-->
	<!--[if lte IE 8]> 
<noscript>
     <style>.html5-wrappers{display:none!important;}</style>
     <div class="ie-noscript-warning">您的浏览器禁用了脚本，请<a href="">查看这里</a>来启用脚本!或者<a href="/?noscript=1">继续访问</a>.
     </div>
</noscript>
<![endif]-

<script language="javascript">

	KindEditor.ready(function(K) {

		var editor = K.create('textarea[name="messagetext"]', {

			cssPath : '../../SunbeamEditor/plugins/code/prettify.css',

			uploadJson : '../../SunbeamEditor/php/upload_json.php',

			fileManagerJson : '../../SunbeamEditor/php/file_manager_json.php',

			allowFileManager : false,

			items : [

						'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',

						'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',

						'insertunorderedlist', '|', 'emoticons', 'image', 'link'],

			afterBlur: function(){this.sync();}

		});

	});

</script>

</head>
<body>
	
	<!-- <div class="toolbar">
		<div class="w clearfix">
			<p class="fl">您好，欢迎访问中国徒步网！&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#" target="_blank">旧网站入口</a></p>
			<ul class="fr tools">
				<li class="fl order">
					<a href="user_index.php" class="">个人中心</a>
				</li>
				<li class="fl"><a  href="javascript:void(0)" onclick="SetHome(this)"  >设为首页</a></li>
				<li class="fl"><a href="javascript:void(0)" onclick="AddFavorite(window.location,document.title)">收藏本站</a></li>
				<li class="fl"><a href="#" class="weibo"></a></li>
				<li class="fl"><a href="#" class="qq"></a></li>
				<li class="fl"><a href="reg.php" class="regist">注册</a></li>
				<li class="fl"><a href="login.php" class="log">登陆</a></li>
				<li class="fr"><p class="tel">400-588-447</p></li>
			</div>
		</ul>
	</div> -->
	<!--top-bar begin-->
	<? include("_include.top.topbar.php") ?>
	<!--top-bar end--> 
	<div class="top-pic">
				<img src="images_daxing/ban_top.jpg"/>
	</div>
	<div class="wrap" id="nav" style="width:100%;margin-bottom: 0;">
		<ul class="nav clearfix">
			<li class="fl"><a href="index.php">网站首页</a></li>
			<li class="fl on"><a href="#model1">活动介绍</a></li>
			<li class="fl"><a href="#model3">摄影展示</a></li>
			<li class="fl"><a href="#model4">活动报名</a></li>
			<li class="fl"><a href="#model6">评论咨询</a></li>
		</ul>
	</div>
	<div class="w wrap">
		<div class="title-wrap" id="model1">
			<p class="en">ACTIVITY INTRODUCED</p>
			<div class="cn"><i class="line-l"></i><span>活动介绍</span><i class="line-r"></i></div>
		</div>
		<ul class="activity-list clearfix">
			<li class="fl bb"><h4 class="ac-t">活动时间：</h4><p class="ac-con"><?=$active_start_time?></p></li>
			<li class="fl bb li-m"><h4 class="ac-t">活动地点：</h4><p class="ac-con"><?=$active_end_prov.$active_end_city?></p></li>
			<li class="fl bb li-r">
			<?php
					$B_ThisTime = strtotime(date('Y-m-d',time()));
					$B_sTime = strtotime($active_start_time);
					$B_ChaTime = $B_sTime - $B_ThisTime; //得出时间戳差值
					if($B_ChaTime<=0){
						$B_ChaTime = 0;
					}
			?>
			<div class="time-item">
			<span id="day_show">0天</span>
			<strong id="hour_show">0时</strong>
			<strong id="minute_show">0分</strong>
			<strong id="second_show">0秒</strong>
			</div>			
			
			</li>
		</ul>
		<div class="activity-hd">
			<div class="new_zixun">
			<h2><a href="#">新闻资讯</a></h2>
			<ol>
				<li><a href="newsview.php?newsid=225">1. 国内首个国际标准徒步旅游目的地落户喀纳斯</a></li>
				<li><a href="newsview.php?newsid=320">2. 国际市民体育联盟年会将于巴西里约召开</a></li>
				<li><a href="newsview.php?newsid=536">3. CVA/【中国徒步网】中标横断天路第四段堪线项目 暨-紧急招募CVA优秀会员3名全程免费参与</a></li>
				<li><a href="newsview.php?newsid=535">4. 稻城亚丁国家级自然保护区禁止非法穿越 违者将重责</a></li>
				<li><a href="newsview.php?newsid=557">5. 秋季户外运动的十大法则，伙伴们赶紧行动起来</a></li>
				<li><a href="newsview.php?newsid=534">6. 你玩户外就是为了在别人面前吹牛吗?</a></li>
			</ol>
			
		</div>
		<div class="clearfix activity-des" id="f00">
			<ul class="activity-ull">
				<?php foreach ($active_pic as $key => $v) {?>
					<li><img src="<?php echo $v;?>" alt="" class="f00 lbhd" /</li>
				<?php } ?>
			</ul>
			<ul class="activity-ul-img gundong">
				<?php foreach ($active_sollimg as $key => $v) {?>
				<li class="thumb"><img src="<?php echo $v;?>"/></li>
				<?php } ?>
			</ul>
		</div>
		</div>
		<!--<div class="single-pic">

			<div class="pic">
			<?php foreach ($active_pic as $key => $v) {
				echo '<img class="lbhd" src="'.$v.'" width="600" height="400" alt=""/>';
			}?>
			</div>
			
			<?php  if($active_sollimg != false) {?>
			<div class="gundong">
				<div class="leftlun">
				</div>
				<div class="thumb">
                	<?php foreach ($active_sollimg as $key => $v) {
					echo '<img class="soll" src="'.$v.'" width="100" height="100" alt=""/>';
					}?>
                </div>
                <div class="rightlun">
                </div>						
			</div>
			<?php } ?>
		</div>		-->
		<div style="clear: both;"></div>
		<div class="title-wrap" id="model3">
			<p class="en">TRAVEL ARRANGEMENTS</p>
			<div class="cn"><i class="line-l"></i><span>摄影展示</span><i class="line-r"></i></div>
		</div>
		<div class="tp-con swiper-container">
				<ul class="tp-con-box swiper-wrapper">
					<li class="tp-con-pic swiper-slide">
						<div class="box">
							<img data-src="images_daxing/img1.jpg" class="swiper-lazy"/>
							<p class="tpiao-bb">标题:&nbsp;<span class="tp-title">【秋意浓】</span></p>
							<p class="tpiao-bb tpiao-ab">
							    姓名:<span>李某某</span>&nbsp;|&nbsp;
							    投票:&nbsp;<span class="tp-piao">0</span>&nbsp;票
						    </p>
							<div class="tp-aa"><a href="javascript:;">投票</a></div>
								
						</div>
						
						<div class="box">
							<img data-src="images_daxing/img1.jpg" class="swiper-lazy"/>
							<p class="tpiao-bb">标题:&nbsp;<span class="tp-title">【秋意浓】</span></p>
							<p class="tpiao-bb tpiao-ab">
							    姓名:<span>李某某</span>&nbsp;|&nbsp;
							    投票:&nbsp;<span class="tp-piao">0</span>&nbsp;票
						    </p>
							<div class="tp-aa"><a href="javascript:;">投票</a></div>
								
						</div>
						<div class="box">
							<img data-src="images_daxing/img1.jpg" class="swiper-lazy"/>
							<p class="tpiao-bb">标题:&nbsp;<span class="tp-title">【秋意浓】</span></p>
							<p class="tpiao-bb tpiao-ab">
							    姓名:<span>李某某</span>&nbsp;|&nbsp;
							    投票:&nbsp;<span class="tp-piao">0</span>&nbsp;票
						    </p>
							<div class="tp-aa"><a href="javascript:;">投票</a></div>
								
						</div>
						<div class="box">
							<img data-src="images_daxing/img1.jpg" class="swiper-lazy"/>
							<p class="tpiao-bb">标题:&nbsp;<span class="tp-title">【秋意浓】</span></p>
							<p class="tpiao-bb tpiao-ab">
							    姓名:<span>李某某</span>&nbsp;|&nbsp;
							    投票:&nbsp;<span class="tp-piao">0</span>&nbsp;票
						    </p>
							<div class="tp-aa"><a href="javascript:;">投票</a></div>
								
						</div>
						<div class="box">
							<img data-src="images_daxing/img1.jpg" class="swiper-lazy"/>
							<p class="tpiao-bb">标题:&nbsp;<span class="tp-title">【秋意浓】</span></p>
							<p class="tpiao-bb tpiao-ab">
							    姓名:<span>李某某</span>&nbsp;|&nbsp;
							    投票:&nbsp;<span class="tp-piao">0</span>&nbsp;票
						    </p>
							<div class="tp-aa"><a href="javascript:;">投票</a></div>
								
						</div>
						<div class="box">
							<img data-src="images_daxing/img1.jpg" class="swiper-lazy"/>
							<p class="tpiao-bb">标题:&nbsp;<span class="tp-title">【秋意浓】</span></p>
							<p class="tpiao-bb tpiao-ab">
							    姓名:<span>李某某</span>&nbsp;|&nbsp;
							    投票:&nbsp;<span class="tp-piao">0</span>&nbsp;票
						    </p>
							<div class="tp-aa"><a href="javascript:;">投票</a></div>
								
						</div>
						<div class="box">
							<img data-src="images_daxing/img1.jpg" class="swiper-lazy"/>
							<p class="tpiao-bb">标题:&nbsp;<span class="tp-title">【秋意浓】</span></p>
							<p class="tpiao-bb tpiao-ab">
							    姓名:<span>李某某</span>&nbsp;|&nbsp;
							    投票:&nbsp;<span class="tp-piao">0</span>&nbsp;票
						    </p>
							<div class="tp-aa"><a href="javascript:;">投票</a></div>
								
						</div>
						<div class="box">
							<img data-src="images_daxing/img1.jpg" class="swiper-lazy"/>
							<p class="tpiao-bb">标题:&nbsp;<span class="tp-title">【秋意浓】</span></p>
							<p class="tpiao-bb tpiao-ab">
							    姓名:<span>李某某</span>&nbsp;|&nbsp;
							    投票:&nbsp;<span class="tp-piao">0</span>&nbsp;票
						    </p>
							<div class="tp-aa"><a href="javascript:;">投票</a></div>
								
						</div>
					</li>
					<li class="tp-con-pic swiper-slide">
						<div class="box">
							<img data-src="images_daxing/img1.jpg" class="swiper-lazy"/>
							<p class="tpiao-bb">标题:&nbsp;<span class="tp-title">【秋意浓】</span></p>
							<p class="tpiao-bb tpiao-ab">
							    姓名:<span>李某某</span>&nbsp;|&nbsp;
							    投票:&nbsp;<span class="tp-piao">0</span>&nbsp;票
						    </p>
							<div class="tp-aa"><a href="javascript:;">投票</a></div>
								
						</div>
						
						<div class="box">
							<img data-src="images_daxing/img1.jpg" class="swiper-lazy"/>
							<p class="tpiao-bb">标题:&nbsp;<span class="tp-title">【秋意浓】</span></p>
							<p class="tpiao-bb tpiao-ab">
							    姓名:<span>李某某</span>&nbsp;|&nbsp;
							    投票:&nbsp;<span class="tp-piao">0</span>&nbsp;票
						    </p>
							<div class="tp-aa"><a href="javascript:;">投票</a></div>
								
						</div>
						<div class="box">
							<img data-src="images_daxing/img1.jpg" class="swiper-lazy"/>
							<p class="tpiao-bb">标题:&nbsp;<span class="tp-title">【秋意浓】</span></p>
							<p class="tpiao-bb tpiao-ab">
							    姓名:<span>李某某</span>&nbsp;|&nbsp;
							    投票:&nbsp;<span class="tp-piao">0</span>&nbsp;票
						    </p>
							<div class="tp-aa"><a href="javascript:;">投票</a></div>
								
						</div>
						<div class="box">
							<img data-src="images_daxing/img1.jpg" class="swiper-lazy"/>
							<p class="tpiao-bb">标题:&nbsp;<span class="tp-title">【秋意浓】</span></p>
							<p class="tpiao-bb tpiao-ab">
							    姓名:<span>李某某</span>&nbsp;|&nbsp;
							    投票:&nbsp;<span class="tp-piao">0</span>&nbsp;票
						    </p>
							<div class="tp-aa"><a href="javascript:;">投票</a></div>
								
						</div>
						<div class="box">
							<img data-src="images_daxing/img1.jpg" class="swiper-lazy"/>
							<p class="tpiao-bb">标题:&nbsp;<span class="tp-title">【秋意浓】</span></p>
							<p class="tpiao-bb tpiao-ab">
							    姓名:<span>李某某</span>&nbsp;|&nbsp;
							    投票:&nbsp;<span class="tp-piao">0</span>&nbsp;票
						    </p>
							<div class="tp-aa"><a href="javascript:;">投票</a></div>
								
						</div>
						<div class="box">
							<img data-src="images_daxing/img1.jpg" class="swiper-lazy"/>
							<p class="tpiao-bb">标题:&nbsp;<span class="tp-title">【秋意浓】</span></p>
							<p class="tpiao-bb tpiao-ab">
							    姓名:<span>李某某</span>&nbsp;|&nbsp;
							    投票:&nbsp;<span class="tp-piao">0</span>&nbsp;票
						    </p>
							<div class="tp-aa"><a href="javascript:;">投票</a></div>
								
						</div>
						<div class="box">
							<img data-src="images_daxing/img1.jpg" class="swiper-lazy"/>
							<p class="tpiao-bb">标题:&nbsp;<span class="tp-title">【秋意浓】</span></p>
							<p class="tpiao-bb tpiao-ab">
							    姓名:<span>李某某</span>&nbsp;|&nbsp;
							    投票:&nbsp;<span class="tp-piao">0</span>&nbsp;票
						    </p>
							<div class="tp-aa"><a href="javascript:;">投票</a></div>
								
						</div>
						<div class="box">
							<img data-src="images_daxing/img1.jpg" class="swiper-lazy"/>
							<p class="tpiao-bb">标题:&nbsp;<span class="tp-title">【秋意浓】</span></p>
							<p class="tpiao-bb tpiao-ab">
							    姓名:<span>李某某</span>&nbsp;|&nbsp;
							    投票:&nbsp;<span class="tp-piao">0</span>&nbsp;票
						    </p>
							<div class="tp-aa"><a href="javascript:;">投票</a></div>
								
						</div>
					</li>
					<li class="tp-con-pic swiper-slide">
						<div class="box">
							<img data-src="images_daxing/img1.jpg" class="swiper-lazy"/>
							<p class="tpiao-bb">标题:&nbsp;<span class="tp-title">【秋意浓】</span></p>
							<p class="tpiao-bb tpiao-ab">
							    姓名:<span>李某某</span>&nbsp;|&nbsp;
							    投票:&nbsp;<span class="tp-piao">0</span>&nbsp;票
						    </p>
							<div class="tp-aa"><a href="javascript:;">投票</a></div>
								
						</div>
						
						<div class="box">
							<img data-src="images_daxing/img1.jpg" class="swiper-lazy"/>
							<p class="tpiao-bb">标题:&nbsp;<span class="tp-title">【秋意浓】</span></p>
							<p class="tpiao-bb tpiao-ab">
							    姓名:<span>李某某</span>&nbsp;|&nbsp;
							    投票:&nbsp;<span class="tp-piao">0</span>&nbsp;票
						    </p>
							<div class="tp-aa"><a href="javascript:;">投票</a></div>
								
						</div>
						<div class="box">
							<img data-src="images_daxing/img1.jpg" class="swiper-lazy"/>
							<p class="tpiao-bb">标题:&nbsp;<span class="tp-title">【秋意浓】</span></p>
							<p class="tpiao-bb tpiao-ab">
							    姓名:<span>李某某</span>&nbsp;|&nbsp;
							    投票:&nbsp;<span class="tp-piao">0</span>&nbsp;票
						    </p>
							<div class="tp-aa"><a href="javascript:;">投票</a></div>
								
						</div>
						<div class="box">
							<img data-src="images_daxing/img1.jpg" class="swiper-lazy"/>
							<p class="tpiao-bb">标题:&nbsp;<span class="tp-title">【秋意浓】</span></p>
							<p class="tpiao-bb tpiao-ab">
							    姓名:<span>李某某</span>&nbsp;|&nbsp;
							    投票:&nbsp;<span class="tp-piao">0</span>&nbsp;票
						    </p>
							<div class="tp-aa"><a href="javascript:;">投票</a></div>
								
						</div>
						<div class="box">
							<img data-src="images_daxing/img1.jpg" class="swiper-lazy"/>
							<p class="tpiao-bb">标题:&nbsp;<span class="tp-title">【秋意浓】</span></p>
							<p class="tpiao-bb tpiao-ab">
							    姓名:<span>李某某</span>&nbsp;|&nbsp;
							    投票:&nbsp;<span class="tp-piao">0</span>&nbsp;票
						    </p>
							<div class="tp-aa"><a href="javascript:;">投票</a></div>
								
						</div>
						<div class="box">
							<img data-src="images_daxing/img1.jpg" class="swiper-lazy"/>
							<p class="tpiao-bb">标题:&nbsp;<span class="tp-title">【秋意浓】</span></p>
							<p class="tpiao-bb tpiao-ab">
							    姓名:<span>李某某</span>&nbsp;|&nbsp;
							    投票:&nbsp;<span class="tp-piao">0</span>&nbsp;票
						    </p>
							<div class="tp-aa"><a href="javascript:;">投票</a></div>
								
						</div>
						<div class="box">
							<img data-src="images_daxing/img1.jpg" class="swiper-lazy"/>
							<p class="tpiao-bb">标题:&nbsp;<span class="tp-title">【秋意浓】</span></p>
							<p class="tpiao-bb tpiao-ab">
							    姓名:<span>李某某</span>&nbsp;|&nbsp;
							    投票:&nbsp;<span class="tp-piao">0</span>&nbsp;票
						    </p>
							<div class="tp-aa"><a href="javascript:;">投票</a></div>
								
						</div>
						<div class="box">
							<img data-src="images_daxing/img1.jpg" class="swiper-lazy"/>
							<p class="tpiao-bb">标题:&nbsp;<span class="tp-title">【秋意浓】</span></p>
							<p class="tpiao-bb tpiao-ab">
							    姓名:<span>李某某</span>&nbsp;|&nbsp;
							    投票:&nbsp;<span class="tp-piao">0</span>&nbsp;票
						    </p>
							<div class="tp-aa"><a href="javascript:;">投票</a></div>
								
						</div>
					</li>
				</ul>
				 <!-- 如果需要分页器 -->
			    <div class="swiper-pagination"></div>
			    
			</div>
		<div class="title-wrap" id="model4"> 
			<p class="en">ACTIVITY  ENROLLMENT</p>
			<div class="cn"><i class="line-l"></i><span>活动报名</span><i class="line-r"></i></div>
		</div>
		<div class="activity-wrap bb">
			<dl class="act-list clearfix">
				<dt class="fl">活动费用：</dt><dd class="fl">￥<?php echo $active_all_money;?></dd>
				<dt class="fl dt-ml">报名截止日期：</dt><dd class="fl dd-mr"><?php echo date('Y-m-d',strtotime($active_post_time))?></dd>
				<dt class="fl">报名人数：</dt><dd class="fl"><?php 
										 
										$nums = str_count("select * from  kboy_order where aid=$newsid  group by uid","order_num");
										echo $nums;
										?>/<?php echo $active_people;?></dd>
			</dl>
			<dl class="act-list clearfix">
				<dt class="fl">报名联系：</dt><dd class="fr ddr"><?=$active_contact?></dd>
			</dl>
			<dl class="act-list clearfix">
				<dt class="fl">报名方式：</dt><dd class="fr ddr">点击我要报名按钮，开始活动报名，按照流程付款后，我们将电话联系您！</dd>
			</dl>
			<dl class="act-list clearfix">
				<dt class="fl">费用详情：</dt><dd class="fr ddr"><?php echo $active_charge_details;?></dd>
			</dl>
			
			
											<?php

											if($_SESSION['kboy_userid']){

												//判断此线路是否已经超时

												if(date('Y-m-d H:i:s') >= $active_post_time){

												?>

												 <a href="javascript:void(0)" style="background: #AAACAF;" class="sign-btn">报名结束</a>

												<?php

												}else if(date('Y-m-d H:i:s') >= $active_end_time){
												?>
												 <a href="javascript:void(0)" style="background: #AAACAF;" class="sign-btn">活动结束</a>
												<?php
												}

												else if(getNewsNums("kboy_order","aid=$active_id and order_state = 1 and uid = ".$_SESSION['kboy_userid']) >= 1 ){

												?>

												<a href="javascript:void(0)" style="background: #AAACAF;" class="sign-btn">已经报名</a>

												<?php

												}

												else if(  getAllCount("kboy_order","order_num","order_state=1 and aid=$newsid group by uid") >= $active_people){

												?>

												<a href="javascript:void(0)" style="background: #AAACAF;" class="sign-btn">人员已满</a>

												<?php

												}

												else{

												?>

												<a href="create_order.php?aid=<?=$newsid?>" class="sign-btn">我要报名</a>

												<?php

												}

											}

											else{
												if(date('Y-m-d H:i:s') >= $active_end_time){
											?>
											<a href="javascript:void(0);" style="background: #AAACAF;" class="sign-btn">活动已结束</a>
											<?php
												}else{
											?>
											<a href="javascript:alert('请登录后再报名');window.location.href='login.php';" class="sign-btn">我要报名</a>

											<?php
												}

											}

											?>
		</div>
		<div class="title-wrap" id="model6">
			<p class="en">ORGANIZERS OF THE PARTY</p>
			<div class="cn"><i class="line-l"></i><span>评论咨询</span><i class="line-r"></i></div>
		</div>
													<form action="forum_activemessagesave.php?action=add" class="rate-form" method="post" name="messageform" id="messageform">

													<input type="hidden" name="newsid" value="<?php echo $newsid;?>" />
			<div class="clearfix ratebar">
				<p class="fl">评论</p>
				<div class="ff"><a href="reg.php" class="btn fl mr12">注册</a><a href="login.php" class="btn fl mr12">登陆</a></div>
			</div>
			<textarea name="messagetext" id="messagetext"></textarea>
			<div class="form-m clearfix">
				<p class="verify fl"><span class="fl">验证码：</span><input type="text" class="bb fl"  name="messagecode" id="messagecode" /><img src="function/code.php" alt="" class="imgCode reshCode"  /></p>
				<button style="cursor: pointer;" type="submit" class="btn ff fabus">提交</button>
			</div>
		</form>
		
																   <?php

																	$SQL = "";

																	$pagesize = 1000; // 分页数量

																	$pageval = chkstr(trim($_REQUEST['page'])); // 获取Page的值

																	if($pageval){

																		if(!is_numeric($pageval)){

																			echo erro("Page Error");

																		}

																		if($pageval <= 1){

																			$pageval = 1;

																		}

																		$page = ($pageval-1) * $pagesize;

																		$page .= ",";

																	}else{

																		$pageval = 1;

																	}
																	

																	$pagesql = "select * from kboy_active_message  where newsid=$newsid order by id desc";

																	$pagenum = mysql_num_rows(mysql_query($pagesql)); // 总记录数

																	$pagecount = ceil($pagenum/$pagesize); // 共分多少页

																	if($pageval > $pagecount){

																		$pageval = $pagecount;

																	}

																	

																	$news_sql = $pagesql." limit $page $pagesize";

																	$news_rows = mysql_query($news_sql);

																	$i = 1;
																	$nnums = mysql_num_rows($news_rows);
																	
																	if($nnums >0){
																		echo "<ul class=\"rate-list bb\">";
																	}

																	while($news_rs = mysql_fetch_assoc($news_rows)){


																			$pic = getClassName('kboy_user','user_face','uid='.$news_rs['uid']);

																			if($pic){

																				$member_pic = $pic;

																			}else{

																				$member_pic = "images/f_pic1_6.jpg";

																			}

																	

																?>
		
			<li class="clearfix">
				<img src="<?php echo $member_pic;?>" alt="" class="fl" />
				<dl class="fl">
					<dt><?php echo getUserNickName($news_rs['uid']);?></dt>
					<dd class="fl">
						<span class="fl rate-info"><?=stripslashes($news_rs['message_text']);?></span>
						<span class="fr"><?=$news_rs['message_addtime'];?></span>
					</dd>
				</dl>
			</li>
																	<?php

																	  }
																	if($nnums >0){
																		echo $news_rs['messagetext'];
																	}

																	?>



	</div>
	<!-- <div class="footer">
		<div class="w foot-wrap">
			<div class="foot-list clearfix">
				<dl class="fl">
					<dt><a href="">关于我们</a></dt>
					<dd><a href="">徙步网简介</a><a href="">徙步网简介</a><a href="">徙步网简介</a><a href="">徙步网简介</a><a href="">徙步网简介</a></dd>
				</dl>
				<dl class="fl">
					<dt><a href="">帮助中心</a></dt>
					<dd><a href="">新手入门</a><a href="">账号问题</a><a href="">问题投诉</a><a href="">为什么参加徙步活动</a></dd>
				</dl>
				<dl class="fl">
					<dt><a href="">实用工具</a></dt>
					<dd><a href="">网址导航</a><a href="">网站地图</a><a href="">领队申请</a></dd>
				</dl>
				<dl class="fl pay-us">
					<dt><a href="">关注我们</a></dt>
					<dd class="">
						<div class="us-info clearfix"><i class="fl"></i><div class="fl us-txt"><a href="">点击放大</a><a href="">关注徒步网微信</a></div></div>
						<div class="us-info weibo clearfix"><i class="fl"></i><div class="fl us-txt"><a href="">点击放大</a><a href="">关注徒步网微信</a></div>
					</dd>
				</dl>
				<dl class="fl friendlink">                      
					<dt><a href="">友情链接</a></dt>
					<dd><a href="">户外旅游</a><a href="">户外线路</a><a href="">艺龙旅游</a><a href="">汽车问答</a><a href="">汽车品牌</a><a href="">爱卡汽车蚂蜂窝旅游攻略</a><a href="">穷游网</a></dd>
				</dl>
				<dl class="fl phone">
					<dt><a href="">手机客户端</a></dt>
					<dd class="clearfix">
						<a href="" class="fl app-ico">APP图标</a>
						<div class="fl app-cs"><a href=""><i></i>iPhone</a><a href="" class="ad"><i></i>iPhone</a></div>
					</dd>
				</dl>
			</div>
			<p class="copyright">版权所有：国际市民休闲运动联盟 北京每日徒步运动中心 www.chinawalking.net.cn&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Tel：010-84896319/201/21&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;友情链接申请QQ号：2207514312&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;IPC备2207514312</p>
		</div>
	</div> -->
	<!--foot begin-->
	<? include("_include.bottom.footbar.php") ?>
	<!--foot begin--> 

	<script type="text/javascript" src="js_daxing/jquery.min.js"></script>
	<script type="text/javascript" src="js_daxing/jquery.SuperSlide.2.1.2.js"></script>
	<script type="text/javascript" src="js/main.js"></script>
	<script type="text/javascript" src="js/jquery.nicescroll.js"></script>
	<script>
	$(".scroll").niceScroll({  
	cursorcolor:"#2562b3",  
	cursoropacitymax:1,  
	touchbehavior:false,  
	cursorwidth:"5px",  
	cursorborder:"0",  
	cursorborderradius:"5px"  
	}); 

	$(window).scroll(function (){
		if ($(window).scrollTop() > 400) {
		  $("#nav").addClass("fixed")
		}else{
		  $("#nav").removeClass("fixed")
		}
	});

	$(function() {
		$('a[href*=#]').click(function() {
		    $("#nav li").removeClass("on");
		    $(this).parents("li").addClass('on');
	        var $target = $(this.hash);
	        var targetOffset = $target.offset().top-100;
	        $('html,body').stop(true,false).animate({
	                scrollTop: targetOffset
	        },400);
	        return false;
		});

    });


	/********************************/
	
	var d_hd_1=$("#model1").offset().top-160; 
	var d_hd_2=$("#model2").offset().top-160; 
	var d_hd_3=$("#model3").offset().top-160; 
	var d_hd_4=$("#model4").offset().top-160; 
	var d_hd_5=$("#model5").offset().top-160; 
	var d_hd_6=$("#model6").offset().top-160; 

	$(window).scroll(function(event) {
		 var juanqu=$(document).scrollTop(); 
		 console.log(juanqu);
		 if(juanqu>= d_hd_6)
		 {
		 	$(".wrap .nav li").eq(6).addClass('on').siblings().removeClass('on');
		 }
		 else if(juanqu>=d_hd_5)
		 {
		 	$(".wrap .nav li").eq(5).addClass('on').siblings().removeClass('on');
		 }
		 else if(juanqu>=d_hd_4)
		 {
		 	$(".wrap .nav li").eq(4).addClass('on').siblings().removeClass('on');
		 }
		 else if(juanqu>=d_hd_3)
		 {
		 	$(".wrap .nav li").eq(3).addClass('on').siblings().removeClass('on');   
		 }
		 else if(juanqu>=d_hd_2)
		 {
		 	$(".wrap .nav li").eq(2).addClass('on').siblings().removeClass('on');  
		 }
		 else if(juanqu>=d_hd_1)
		 {	
		 	$(".wrap .nav li").eq(1).addClass('on').siblings().removeClass('on');  
		 }
	});


	</script>
	<script type="text/javascript">
			var video1=document.getElementById("bofang");
	
	video1.onclick=function(){
	    if(video1.paused){
	        video1.play();
	    }else{
	        video1.pause();
	    }
	}
	</script>
	<script type="text/javascript">
		//jQuery(".slideBox").slide({mainCell:".bd ul",effect:"leftLoop",autoPlay:true});
		
	//设为首页

			function SetHome(obj){
				try{
					obj.style.behavior='url(#default#homepage)';
					obj.setHomePage("<?php  echo "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];?>");
				}catch(e){
					if(window.netscape){
						try{
							netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
						}catch(e){
							alert("抱歉，此操作被浏览器拒绝！\n\n请在浏览器地址栏输入“about:config”并回车然后将[signed.applets.codebase_principal_support]设置为'true'");
						};
					}else{
						alert("抱歉，您所使用的浏览器无法完成此操作。\n\n您需要手动将'<?php  echo "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];?>'设置为首页。");
					};
				};
			};
       //加入收藏 
           function AddFavorite(sURL, sTitle) {               
		    sURL = encodeURI(sURL);          
			try{                 
			  window.external.addFavorite(sURL, sTitle);               }
			  catch(e) {               
			      try{                    
				     window.sidebar.addPanel(sTitle, sURL, "");                   }
					 catch (e) {                     
					   alert("加入收藏失败，请使用Ctrl+D进行添加,或手动在浏览器里进行设置.");      
					   }             
			  }    
		    } 
			
			
			
			
			
		$(".reshCode").click(function(){

			$(".imgCode").attr("src","function/code.php?nums=" + Math.random());   

		});

		

		$(".fabus").click(function(){

			var  messagetext = $("#messagetext").val();

			var  messagecode = $("#messagecode").val();

			if(messagetext.replace(/\ /g,"").length<1){

				alert("评论内容不能为空！");

				$("#messagetext").focus();

				return false;

			}

			else if (messagecode.replace(/\ /g,"").length<1){

				alert("请正确输入验证码！");

				$("#messagecode").focus();

				return false;

			}

			else if (isNaN(messagecode.replace(/\ /g,""))){

				alert("请正确输入验证码！");

				$("#messagecode").focus();

				return false;

			}

			else{

			  document.messageform.submit();

			}

		});
			
			
			
			var intDiff = parseInt(<?=$B_ChaTime?>);//倒计时总秒数量
			function timer(intDiff){
				window.setInterval(function(){
				var day=0,
					hour=0,
					minute=0,
					second=0;//时间默认值       
				if(intDiff > 0){
					day = Math.floor(intDiff / (60 * 60 * 24));
					hour = Math.floor(intDiff / (60 * 60)) - (day * 24);
					minute = Math.floor(intDiff / 60) - (day * 24 * 60) - (hour * 60);
					second = Math.floor(intDiff) - (day * 24 * 60 * 60) - (hour * 60 * 60) - (minute * 60);
				}
				if (minute <= 9) minute = '0' + minute;
				if (second <= 9) second = '0' + second;
				$('#day_show').html(day+"天");
				$('#hour_show').html('<s id="h"></s>'+hour+'时');
				$('#minute_show').html('<s></s>'+minute+'分');
				$('#second_show').html('<s></s>'+second+'秒');
				intDiff--;
				}, 1000);
			} 
			$(function(){
				timer(intDiff);
			});
		
	</script>

</body>
<script language="javascript">
  var mySwiper = new Swiper('.swiper-container',{
  	lazyLoading : true,
	autoplay: 5000,//可选选项，自动滑动
    
    // 如果需要分页器
    pagination: '.swiper-pagination',
    
  })        

</script>
</html>
<script type="text/javascript">
	$(function(){
			var lbhd = $(".lbhd").length;
			var c = 0;
						function run(){
							c++;
							c = (c == lbhd)?0:c;
							$(".lbhd").eq(c).stop().fadeIn(300).parent().siblings('li').find('img').stop().fadeOut(300);
							//让c号li变红，其他的变灰
							$(".thumb").eq(c).css({'opacity':'1'}).siblings('li').css({'opacity':'0.3'});
						}
						
						timer = setInterval(run,2000);
						$(".thumb").hover(function(){
								c = $(this).index();
					//			让c号图片显示，其他的隐藏
								t = setTimeout(function(){
								$(".lbhd").eq(c).stop().fadeIn(300).parent().siblings('li').find('img').stop().fadeOut(300);
					//			让c号li变红，其他的变灰
								$(".thumb").eq(c).css({'opacity':'1'}).siblings('li').css({'opacity':'0.3'});
								},200)
							},function(){
								clearTimeout(t);
								//移出事件
							})
						$(".gundong").mousemove(function(){
							clearInterval(timer);
						})	
		//															
		//															
						$(".gundong").mouseleave(function(){
								timer = setInterval(run,2000);
						})
					})
</script>